home *** CD-ROM | disk | FTP | other *** search
/ PC World 2008 February (DVD) / PCWorld_2008-02_DVD.iso / v cisle / PHP / PHP.exe / xampp-win32-1.6.5-installer.exe / htdocs / xampp / getexcel.php < prev    next >
Encoding:
PHP Script  |  2007-12-20  |  435 b   |  17 lines

  1. <?php
  2.     include_once "Spreadsheet/Excel/Writer.php";
  3.  
  4.     $xls =& new Spreadsheet_Excel_Writer();
  5.     $xls->send("test.xls");
  6.     $format =& $xls->addFormat();
  7.     $format->setBold();
  8.     $format->setColor("blue");
  9.     $sheet =& $xls->addWorksheet('Test XLS');
  10.     $sheet->write(0, 0, 1, 0);
  11.     $sheet->write(0, 1, 2, 0);
  12.     $sheet->writeString(1, 0, "XAMPP:", 0);
  13.     $sheet->writeString(1, 1, $_POST['value'], $format);
  14.     $xls->close();
  15.     exit;
  16. ?>
  17.